package com.caishi.lkx.exam.service;

import com.zzw.common.entity.BaseService;
import com.caishi.lkx.exam.records.RecordsCollectType;
import com.caishi.lkx.user.model.MaterialLikeModel;

/**
 * @author by liyihua
 * @date : 2022-03-15 14:29
 */
public interface IMaterialLikeService extends BaseService<MaterialLikeModel, String> {

    /**
     * 删除用户科目下的所有试卷收藏
     *
     * @param userId
     * @param categoryId
     */
    void delUserAllPaperCollect(String userId, Long categoryId);


    /**
     * 被动添加试题收藏
     * @param userId 用户id
     * @param industryCode 行业code
     * @param examId 考试id
     * @param categoryId 科目id
     * @param relationId 集合id
     * @param recordsType 考试类型
     */
    void addCollectionQuestions(String userId, String industryCode, String examId, Long categoryId, String relationId, RecordsCollectType recordsType);

    /**
     * 删除被动试题收藏
     * @param userId 用户id
     * @param industryCode 行业code
     * @param examId 考试id
     * @param categoryId 科目id
     * @param relationId 集合id
     * @param recordsType 考试类型
     */
    void delCollectionQuestions(String userId, String industryCode, String examId, Long categoryId, String relationId, RecordsCollectType recordsType);
}
